package com.fh.modules.kms.service;

import com.fh.modules.kms.entity.Knowledge;
import org.springframework.data.domain.Page;

import java.util.Iterator;
import java.util.List;

/**
 * @Author qiujunda
 * @Date 20/05/2020
 * @Description
 */
public interface IElasticService {
    void createIndex();

    void deleteIndex(String index);

    void save(Knowledge docBean);

    void saveAll(List<Knowledge> list);

    Iterator<Knowledge> findAll();

    Page<Knowledge> queryForPage();

    Object queryAggregationForPage();
}
